﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:n="clr-namespace:NUnitResults;assembly=NUnitResults">
    <DataTemplate DataType="{x:Type n:ResultFile+Warning}">
        <StackPanel>
            <DockPanel>
                <Rectangle DockPanel.Dock="Left" Height="15" Width="15" RadiusX="2" RadiusY="2" Margin="2,2,8,2">
                    <Rectangle.Fill>
                        <VisualBrush>
                            <VisualBrush.Visual>
                                <TextBlock Padding="2" FontWeight="999" TextAlignment="Center" Text="!" Background="Yellow" />
                            </VisualBrush.Visual>
                        </VisualBrush>
                    </Rectangle.Fill>
                </Rectangle>
                <TextBlock VerticalAlignment="Center" DockPanel.Dock="Left" Text="Source: " />
                <TextBlock VerticalAlignment="Center" Text="{Binding Source}" />
            </DockPanel>
            <TextBlock Text="{Binding Message}" />
        </StackPanel>
    </DataTemplate>
</ResourceDictionary>